package com.xxxx.manager.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 设置浏览器中Cookie相关信息
 *
 * @Author GP
 * @Date 2020/8/31 19:35
 */
public interface CookieService {
    /**
     * 将ticket设置到cookie中
     */
    public Boolean setCookie(HttpServletRequest request, HttpServletResponse response, String ticket);

    /**
     * 从浏览器中获取cookie
     */
    public String getCookie(HttpServletRequest request);

    /**
     * 从浏览器中删除cookie
     */
    public Boolean deleteCookie(HttpServletRequest request, HttpServletResponse response);
}
